﻿using GalaSoft.MvvmLight;
using NaireSystem.Api.VO;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NaireSystem.ViewModels
{
    public class ViewModelScheduleManager : ViewModelBase
    {
        private string _Name;
        public string Name { get => _Name; set => Set("Name", ref _Name, value); }

        private DateTime? _StartTime;
        public DateTime? StartTime { get => _StartTime; set => Set("StartTime", ref _StartTime, value); }

        private DateTime? _EndTime;
        public DateTime? EndTime { get => _EndTime; set => Set("EndTime", ref _EndTime, value); }

        private ObservableCollection<ScheduleModel> _ListSchedule = new ObservableCollection<ScheduleModel>();
        public ObservableCollection<ScheduleModel> ListSchedule { get { return _ListSchedule; } set { Set("ListSchedule", ref _ListSchedule, value); } }

        private ObservableCollection<IntStringData> _ListShift = new ObservableCollection<IntStringData>();
        public ObservableCollection<IntStringData> ListShift { get { return _ListShift; } set { Set("ListShift", ref _ListShift, value); } }




    }
    public class ScheduleModel : VMBase
    {
        private string _UserName;
        public string UserName { get => _UserName; set => Set("UserName", ref _UserName, value); }

        private DateTime? _StartTime;
        public DateTime? StartTime { get => _StartTime; set => Set("StartTime", ref _StartTime, value); }

        private DateTime? _EndTime;
        public DateTime? EndTime { get => _EndTime; set => Set("EndTime", ref _EndTime, value); }



        private IntStringData _Shift1_key;
        public IntStringData Shift1_key
        {
            get => _Shift1_key;
            set
            {
                Set("Shift1_key", ref _Shift1_key, value);
            }
        }

        private IntStringData _Shift2_key;
        public IntStringData Shift2_key { get => _Shift2_key; set => Set("Shift2_key", ref _Shift2_key, value); }

        private IntStringData _Shift3_key;
        public IntStringData Shift3_key { get => _Shift3_key; set => Set("Shift3_key", ref _Shift3_key, value); }

        private IntStringData _Shift4_key;
        public IntStringData Shift4_key { get => _Shift4_key; set => Set("Shift4_key", ref _Shift4_key, value); }

        private IntStringData _Shift5_key;
        public IntStringData Shift5_key { get => _Shift5_key; set => Set("Shift5_key", ref _Shift5_key, value); }

        private IntStringData _Shift6_key;
        public IntStringData Shift6_key { get => _Shift6_key; set => Set("Shift6_key", ref _Shift6_key, value); }

        private IntStringData _Shift7_key;
        public ScheduleVO data;

        public ScheduleModel(ScheduleVO item)
        {
            this.data = item;
        }

        public IntStringData Shift7_key { get => _Shift7_key; set => Set("Shift7_key", ref _Shift7_key, value); }




    }
}
